Disable regex "perf" feature#181
Disable regex "perf" feature#181link2xt wants to merge 1 commit intorust-cli:masterfrom link2xt:regex-perf
Conversation
Users can still enable it if needed. Normally "env_logger" is used as a dev dependency, but because `-Z features=dev_dep` is not stabilized yet[1], "perf" feature leaks into build dependencies and makes it impossible to disable "perf" feature, except by disabling "env_logger". [1] rust-lang/cargo#7916
|
For rationale behind this, see rust-lang/regex#721 |
|
Hi, and thanks for the PR! I can understand the wish to use
The most common use I've seen is as a regular dependency in an application, so we definitely shouldn't just change the default feature set here. To make this possible in a backwards-compatible manner, please adjust your PR to
|
|
We have a https://github.com/deltachat/deltachat-core-rust application, which depends on Is backwards compatibility worth all these complications? How likely is it that someone used |
Then make a PR to have
This is true even with your PR as-is.
Yes. |
By the way, I've realized that updating this PR to be backwards-compatible is probably even easier than going through that list and then replacing all uses of // renamed in Cargo.toml to not conflict with the regex feature
extern crate regex1 as regex; |
|
It appears the |
|
Since it doesn't look like this PR is going anywhere, I'm going to close it. Feel free to open an issue about the same thing; I'm still open to fixing this in a backwards-compatible way (though am not going to work on the fix myself). |
Users can still enable it if needed.
Normally "env_logger" is used as a dev dependency, but because
-Z features=dev_depis not stabilized yet[1], "perf" feature leaks intobuild dependencies and makes it impossible to disable "perf" feature,
except by disabling "env_logger".
[1] rust-lang/cargo#7916